package com.aw.baselib.util.update

import com.aw.baselib.util.AwDataUtil

/**
 * Created by hzw
 */
class UpdateBean {
    var id: String? = null
    var appVersion: String? = null
    var appCode: String? = null
    var appName: String? = null
    var appurl: String? = null
    var description: String? = null
    var phoneType: String? = null
    var isForceRenew: String? = null
    val isForceUpdate: Boolean
        get() = if (AwDataUtil.isEmpty(isForceRenew)) {
            false
        } else "1" == isForceRenew

    override fun toString(): String {
        return "UpdateBean{" +
                "id='" + id + '\'' +
                ", appVersion='" + appVersion + '\'' +
                ", appCode='" + appCode + '\'' +
                ", appName='" + appName + '\'' +
                ", appurl='" + appurl + '\'' +
                ", description='" + description + '\'' +
                ", phoneType='" + phoneType + '\'' +
                ", isForceRenew='" + isForceRenew + '\'' +
                '}'
    }
}